import request from '@/utils/request'

// 查询报工项扣款列表
export function listDm(query) {
  return request({
    url: '/sl/dm/list',
    method: 'get',
    params: query
  })
}

// 查询报工项扣款详细
export function getDm(dmId) {
  return request({
    url: '/sl/dm/' + dmId,
    method: 'get'
  })
}

// 新增报工项扣款
export function addDm(data) {
  return request({
    url: '/sl/dm',
    method: 'post',
    data: data
  })
}

// 修改报工项扣款
export function updateDm(data) {
  return request({
    url: '/sl/dm',
    method: 'put',
    data: data
  })
}

// 删除报工项扣款
export function delDm(dmId) {
  return request({
    url: '/sl/dm/' + dmId,
    method: 'delete'
  })
}
